package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.ListModel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VAuto extends javax.swing.JFrame {
	private JPanel panAuto;
	private JLabel lblTituloAuto;
	private JSeparator sptTituloAuto;
	private JLabel lblMarcaAuto;
	private JButton btnRegistrarInspección;
	private JButton btnBuscarAuto;
	private JButton btnSalir;
	private JButton btnCancelar;
	private JButton btnEliminarAuto;
	private JButton btnModificarAuto;
	private JButton btnGuardarAuto;
	private JButton btnRegAccesosriosAuto;
	private JLabel lblModeloAuto;
	private JLabel lblAnnoModeloAuto;
	private JComboBox cmbColorAuto;
	private JLabel lblColorAuto;
	private JComboBox cmbAnnoAuto;
	private JTextField txtModeloAutp;
	private JComboBox cmbMarcaAuto;
	private JTextField txtCodAuto;
	private JLabel lblCodPlaca;
	
	public VAuto() {
		super("Auto");
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				panAuto = new JPanel();
				getContentPane().add(panAuto, BorderLayout.CENTER);
				panAuto.setLayout(null);
				panAuto.setPreferredSize(new java.awt.Dimension(775, 566));
				panAuto.setFont(new java.awt.Font("Andika Basic",0,14));
				panAuto.setBackground(new java.awt.Color(17,139,235));
				{
					lblTituloAuto = new JLabel();
					panAuto.add(lblTituloAuto);
					lblTituloAuto.setText("Información Auto");
					lblTituloAuto.setBounds(309, 22, 237, 15);
					lblTituloAuto.setFont(new java.awt.Font("Andika Basic",1,18));
				}
				{
					sptTituloAuto = new JSeparator();
					panAuto.add(sptTituloAuto);
					sptTituloAuto.setBounds(139, 43, 524, 10);
				}
				{
					lblCodPlaca = new JLabel();
					panAuto.add(lblCodPlaca);
					lblCodPlaca.setText("Código de Placa Auto:");
					lblCodPlaca.setBounds(67, 117, 138, 15);
					lblCodPlaca.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					txtCodAuto = new JTextField();
					panAuto.add(txtCodAuto);
					txtCodAuto.setBounds(240, 101, 129, 31);
				}
				{
					lblMarcaAuto = new JLabel();
					panAuto.add(lblMarcaAuto);
					lblMarcaAuto.setText("Marca Auto:");
					lblMarcaAuto.setBounds(67, 191, 128, 15);
					lblMarcaAuto.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					ComboBoxModel cmbMarcaAutoModel = 
							new DefaultComboBoxModel(
									new String[] { "Chevolet", "Ford", "Dodge", "Toyota", "Mazda", "Renualt","BMW", "Mercedez Benz",});
					cmbMarcaAuto = new JComboBox();
					panAuto.add(cmbMarcaAuto);
					cmbMarcaAuto.setModel(cmbMarcaAutoModel);
					cmbMarcaAuto.setBounds(240, 176, 137, 30);
				}
				{
					lblModeloAuto = new JLabel();
					panAuto.add(lblModeloAuto);
					lblModeloAuto.setText("Modelo Auto:");
					lblModeloAuto.setBounds(67, 258, 128, 15);
					lblModeloAuto.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					txtModeloAutp = new JTextField();
					panAuto.add(txtModeloAutp);
					txtModeloAutp.setBounds(240, 244, 137, 29);
				}
				{
					lblAnnoModeloAuto = new JLabel();
					panAuto.add(lblAnnoModeloAuto);
					lblAnnoModeloAuto.setText("Año Modelo Auto:");
					lblAnnoModeloAuto.setBounds(67, 317, 138, 15);
					lblAnnoModeloAuto.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					ComboBoxModel cmbAnnoAutoModel = 
							new DefaultComboBoxModel(
									new String[] { "1998", "1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013" });
					cmbAnnoAuto = new JComboBox();
					panAuto.add(cmbAnnoAuto);
					cmbAnnoAuto.setModel(cmbAnnoAutoModel);
					cmbAnnoAuto.setBounds(240, 305, 83, 27);
				}
				{
					lblColorAuto = new JLabel();
					panAuto.add(lblColorAuto);
					lblColorAuto.setText("Color Auto:");
					lblColorAuto.setBounds(67, 376, 95, 15);
					lblColorAuto.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					ComboBoxModel cmbColorAutoModel = 
							new DefaultComboBoxModel(
									new String[] { "Blanco", "Negro","Rojo","Azul", "Verde", "Plateado", "Dorado" });
					cmbColorAuto = new JComboBox();
					panAuto.add(cmbColorAuto);
					cmbColorAuto.setModel(cmbColorAutoModel);
					cmbColorAuto.setBounds(240, 371, 124, 22);
				}
				{
					btnRegAccesosriosAuto = new JButton();
					panAuto.add(btnRegAccesosriosAuto);
					btnRegAccesosriosAuto.setText("Registrar Accesorios Auto");
					btnRegAccesosriosAuto.setBounds(546, 169, 180, 46);
					btnRegAccesosriosAuto.setBackground(new java.awt.Color(255,0,0));
				}
				{
					btnGuardarAuto = new JButton();
					panAuto.add(btnGuardarAuto);
					btnGuardarAuto.setText("Guardar");
					btnGuardarAuto.setBounds(67, 492, 101, 40);
					btnGuardarAuto.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnModificarAuto = new JButton();
					panAuto.add(btnModificarAuto);
					btnModificarAuto.setText("Modificar");
					btnModificarAuto.setBounds(221, 491, 97, 41);
					btnModificarAuto.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnEliminarAuto = new JButton();
					panAuto.add(btnEliminarAuto);
					btnEliminarAuto.setText("Eliminar");
					btnEliminarAuto.setBounds(359, 492, 110, 40);
					btnEliminarAuto.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnCancelar = new JButton();
					panAuto.add(btnCancelar);
					btnCancelar.setText("Cancelar");
					btnCancelar.setBounds(519, 489, 93, 43);
					btnCancelar.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnSalir = new JButton();
					panAuto.add(btnSalir);
					btnSalir.setText("Salir");
					btnSalir.setBounds(668, 489, 79, 43);
					btnSalir.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnBuscarAuto = new JButton();
					panAuto.add(btnBuscarAuto);
					btnBuscarAuto.setText("Buscar");
					btnBuscarAuto.setBounds(418, 99, 101, 36);
					btnBuscarAuto.setBackground(new java.awt.Color(165,42,42));
				}
				{
					btnRegistrarInspección = new JButton();
					panAuto.add(btnRegistrarInspección);
					btnRegistrarInspección.setText("Registrar Inspección");
					btnRegistrarInspección.setBounds(546, 251, 180, 44);
					btnRegistrarInspección.setBackground(new java.awt.Color(255,0,0));
				}
			}
			pack();
			this.setSize(826, 602);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public void addListener(ActionListener action) {
		this.btnSalir.addActionListener(action);
		
	}

}
